package com.linln.admin.good.validator;

import lombok.Data;

import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 小懒虫
 * @date 2021/04/03
 */
@Data
public class GoodValid implements Serializable {
    @NotEmpty(message = "商品名称不能为空")
    private String name;
    @NotNull(message = "商品一级分类不能为空")
    private Long category_id1;
    //二级分类id
    @NotNull(message = "商品二级分类不能为空")
    private Long category_id2;
    //三级分类id
    @NotNull(message = "商品三级分类不能为空")
    private Long category_id3;
}